import request from '../utils/request'

export function getUserInfo() {
  return request<UserInfo>({
    url: '/user/get',
    method: 'GET'
  })
}

export function login(data: unknown) {
  return request<string>({
    url: '/user/login',
    method: 'POST',
    data
  })
}
